import Vue from 'vue'
import Router from 'vue-router'
import goodList from '@/views/goodList'
import cartList from '@/views/cartList'
import addressList from '@/views/addressList'
import orderList from '@/views/orderList'
import newAddress from '@/views/newAddress'
import orderSucess from '@/views/orderSucess'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'goodList',
      component: goodList
    },
    {
      path: '/cart',
      name: 'cart',
      component: cartList
    },
    {
      path: '/address',
      name: 'address',
      component:addressList
    },
    {
      path: '/order',
      name: 'order',
      component:orderList
    },
    {
      path: '/newaddress',
      name: 'newaddress',
      component:newAddress
    },
    {
      path: '/orderSucess',
      name: 'orderSucess',
      component:orderSucess
    }
  ]
})
